package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.annotation.Excel;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 费用支出对象 expenses
 * 
 * @author ruoyi
 */
@Data
public class Expense extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 支出ID */
    private Long expenseId;

    /** 支出金额 */
    @Excel(name = "支出金额")
    private BigDecimal amount;

    /** 支出类型 */
    @Excel(name = "支出类型")
    private String expenseType;

    /** 支出日期 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "支出日期", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date expenseDate;

    /** 创建者ID */
    private Long createdBy;

    // 省略getter/setter方法...
    // 请使用IDE自动生成getter/setter方法

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("expenseId", getExpenseId())
            .append("amount", getAmount())
            .append("expenseType", getExpenseType())
            .append("expenseDate", getExpenseDate())
            .append("createdBy", getCreatedBy())
            .toString();
    }
} 